#include "main.h"

uint8_t com_getCheckSum(uint8_t *pbuf,uint8_t size)
{
	uint8_t sum=0;
	for(uint8_t i=0;i<size;i++)
	{
		sum+=(uint8_t)*(pbuf+i);
	}
	return sum;
}
